diff options
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(system)/page-visits/page.tsx')
| -rw-r--r-- | app/[lng]/evcp/(evcp)/(system)/page-visits/page.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(system)/page-visits/page.tsx b/app/[lng]/evcp/(evcp)/(system)/page-visits/page.tsx index 07275cad..6b8e4a2a 100644 --- a/app/[lng]/evcp/(evcp)/(system)/page-visits/page.tsx +++ b/app/[lng]/evcp/(evcp)/(system)/page-visits/page.tsx @@ -8,12 +8,16 @@ import { Shell } from "@/components/shell" import { getPageVisits } from "@/lib/page-visits/service" import { searchParamsCache } from "@/lib/page-visits/validation" import { PageVisitsTable } from "@/lib/page-visits/table/page-visits-table" +import { useTranslation } from "@/i18n" interface PageVisitsPageProps { + params: Promise<{ lng: string }> searchParams: Promise<SearchParams> } export default async function PageVisitsPage(props: PageVisitsPageProps) { + const { lng } = await props.params + const { t } = await useTranslation(lng, 'menu') const searchParams = await props.searchParams const search = searchParamsCache.parse(searchParams) @@ -33,7 +37,7 @@ export default async function PageVisitsPage(props: PageVisitsPageProps) { <div> <div className="flex items-center gap-2"> <h2 className="text-2xl font-bold tracking-tight"> - 페이지 방문 이력 + {t('menu.information_system.page_visits')} </h2> </div> {/* <p className="text-muted-foreground"> @@ -58,4 +62,4 @@ export default async function PageVisitsPage(props: PageVisitsPageProps) { </React.Suspense> </Shell> ) -}
\ No newline at end of file +} |
